<script setup>
import { ElCarousel, ElCarouselItem, ElImage } from 'element-plus';

import url1 from "/src/assets/img/break.jpg";
import url2 from "/src/assets/img/break1.jpg";
import url3 from "/src/assets/img/break2.jpg";
import url4 from "/src/assets/img/break3.jpg";

const img_arr = [url1, url2, url3, url4];
</script>

<template>
    <div class="carousel_box">
        <el-carousel>
            <el-carousel-item v-for="item in img_arr" :key="item">
                <el-image  :src="item" fit="none" />
            </el-carousel-item>
        </el-carousel>
    </div>
</template>

<style scoped>
.carousel_box{
    height: 60vh;
    max-height: 500px;
    margin:0 auto;
    max-width: 1920px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}
.carousel_box .el-carousel {
    height: 60vh;
    max-height: 500px;
}
.carousel_box .el-carousel .el-carousel__item{
    height: 200%;
    background-color: aqua;
}
.carousel_box .el-carousel .el-image{
    height: 100%;
    width: 100%;
}

</style>
